﻿using Vra.DataAccess.Attributes;

namespace Vra.DataAccess.Entities
{
	[Table("CUSTOMER")]
	public class Customer
	{
		[Column(IsIdentity = true)]
		public int CustomerId;
		[Column]
		public string Name;
		[Column]
		public string Email;
		[Column]
		public string AreaCode;
		[Column]
		public string PhoneNumber;
		[Column]
		public string Street;
		[Column]
		public string City;
		[Column]
		public string Region;
		[Column]
		public string ZipPostalCode;
		[Column]
		public string Country;
		[Column]
		public string HouseNumber;

		public Customer()
		{
			
		}

		public Customer(int? id)
		{
			if (id.HasValue)
				CustomerId = id.Value;
		}
	}
}
